﻿namespace ACCOUNTING.LVY.Business
{
    using ACCOUNTING;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Data;
    using System.Windows.Forms;

    public class clsNhapKhoChiTiet
    {
        private double mDonGia = 0.0;
        private double mDonGiaNT = 0.0;
        private double mGiaBan = 0.0;
        private double mGiaBanNT = 0.0;
        private double mHeSo = 0.0;
        private string mKhoa = "";
        private string mKhoaChiTiet = "";
        private string mKhoaDonViTinh = "";
        private string mKhoaHangHoa = "";
        private string mKhoaKho = "";
        private string mKhoaPhieuNhap = "";
        private string mKhoaTKGiaVon = "";
        private string mKhoaTKHangHoa = "";
        private string mLoaiTien = "";
        private string mNgayHetHanDung = "";
        private string mNgayNhap = "";
        private string mSoLoHang = "";
        private double mSoLuong = 0.0;
        private double mSoLuongDaTra = 0.0;
        private double mSoLuongXuat = 0.0;
        private string mSoSeri = "";
        private double mTienBan = 0.0;
        private double mTienBanNT = 0.0;
        private double mTienChietKhau = 0.0;
        private double mTienChietKhauNT = 0.0;
        private double mTienHang = 0.0;
        private double mTienHangNT = 0.0;
        private double mTienPhi = 0.0;
        private double mTienPhiNhapKhau = 0.0;
        private double mTienPhiNhapKhauNT = 0.0;
        private double mTienPhiNK = 0.0;
        private double mTienPhiNKNT = 0.0;
        private double mTienPhiNT = 0.0;
        private double mTienThue = 0.0;
        private double mTienThueNhapKhau = 0.0;
        private double mTienThueNhapKhauNT = 0.0;
        private double mTienThueNT = 0.0;
        private double mTienThuePhi = 0.0;
        private double mTienThuePhiNT = 0.0;
        private double mTyGia = 0.0;
        private int mTyLeChietKhau = 0;
        private int mTyLeThue = 0;
        private int mTyLeThueNK = 0;
        private int mTyLeThuePhi = 0;

        public bool Load(string pKhoa)
        {
            bool flag=false;
            try
            {
                string commandText = "SELECT * FROM ST_NhapKhoChiTiet WHERE Khoa = '" + pKhoa + "'";
                IDataReader dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    this.mKhoa = Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                    this.mKhoaPhieuNhap = Conversions.ToString(modGeneral.GetValue(dataReader, 1, modGeneral.typeOfColumn.GetString));
                    this.mLoaiTien = Conversions.ToString(modGeneral.GetValue(dataReader, 2, modGeneral.typeOfColumn.GetString));
                    this.mTyGia = Conversions.ToDouble(modGeneral.GetValue(dataReader, 3, modGeneral.typeOfColumn.GetDecimal));
                    this.mKhoaKho = Conversions.ToString(modGeneral.GetValue(dataReader, 4, modGeneral.typeOfColumn.GetString));
                    this.mKhoaHangHoa = Conversions.ToString(modGeneral.GetValue(dataReader, 5, modGeneral.typeOfColumn.GetString));
                    this.mKhoaDonViTinh = Conversions.ToString(modGeneral.GetValue(dataReader, 6, modGeneral.typeOfColumn.GetString));
                    this.mHeSo = Conversions.ToDouble(modGeneral.GetValue(dataReader, 7, modGeneral.typeOfColumn.GetDecimal));
                    this.mNgayNhap = Conversions.ToString(modGeneral.GetValue(dataReader, 8, modGeneral.typeOfColumn.GetString));
                    this.mSoSeri = Conversions.ToString(modGeneral.GetValue(dataReader, 9, modGeneral.typeOfColumn.GetString));
                    this.mSoLoHang = Conversions.ToString(modGeneral.GetValue(dataReader, 10, modGeneral.typeOfColumn.GetString));
                    this.mNgayHetHanDung = Conversions.ToString(modGeneral.GetValue(dataReader, 11, modGeneral.typeOfColumn.GetString));
                    this.mSoLuong = Conversions.ToDouble(modGeneral.GetValue(dataReader, 12, modGeneral.typeOfColumn.GetDecimal));
                    this.mDonGiaNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 13, modGeneral.typeOfColumn.GetDecimal));
                    this.mDonGia = Conversions.ToDouble(modGeneral.GetValue(dataReader, 14, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienHangNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 15, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienHang = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x10, modGeneral.typeOfColumn.GetDecimal));
                    this.mTyLeChietKhau = Conversions.ToInteger(modGeneral.GetValue(dataReader, 0x11, modGeneral.typeOfColumn.GetInt32));
                    this.mTienChietKhauNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x12, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienChietKhau = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x13, modGeneral.typeOfColumn.GetDecimal));
                    this.mTyLeThue = Conversions.ToInteger(modGeneral.GetValue(dataReader, 20, modGeneral.typeOfColumn.GetInt32));
                    this.mTienThueNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x15, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienThue = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x16, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienPhiNhapKhauNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x17, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienPhiNhapKhau = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x18, modGeneral.typeOfColumn.GetDecimal));
                    this.mTyLeThueNK = Conversions.ToInteger(modGeneral.GetValue(dataReader, 0x19, modGeneral.typeOfColumn.GetInt32));
                    this.mTienThueNhapKhauNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x1a, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienThueNhapKhau = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x1b, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienPhiNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x1c, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienPhi = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x1d, modGeneral.typeOfColumn.GetDecimal));
                    this.mTyLeThuePhi = Conversions.ToInteger(modGeneral.GetValue(dataReader, 30, modGeneral.typeOfColumn.GetInt32));
                    this.mTienThuePhiNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x1f, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienThuePhi = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x20, modGeneral.typeOfColumn.GetDecimal));
                    this.mKhoaTKHangHoa = Conversions.ToString(modGeneral.GetValue(dataReader, 0x21, modGeneral.typeOfColumn.GetString));
                    this.mKhoaTKGiaVon = Conversions.ToString(modGeneral.GetValue(dataReader, 0x22, modGeneral.typeOfColumn.GetString));
                    this.mGiaBanNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x23, modGeneral.typeOfColumn.GetDecimal));
                    this.mGiaBan = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x24, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienBanNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x25, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienBan = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x26, modGeneral.typeOfColumn.GetDecimal));
                    this.mKhoaChiTiet = Conversions.ToString(modGeneral.GetValue(dataReader, 0x27, modGeneral.typeOfColumn.GetString));
                    this.mSoLuongXuat = Conversions.ToDouble(modGeneral.GetValue(dataReader, 40, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienPhiNKNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x29, modGeneral.typeOfColumn.GetDecimal));
                    this.mTienPhiNK = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x2a, modGeneral.typeOfColumn.GetDecimal));
                    this.mSoLuongDaTra = Conversions.ToDouble(modGeneral.GetValue(dataReader, 0x2b, modGeneral.typeOfColumn.GetDecimal));
                }
                dataReader.Close();
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public DataTable LoadDetails(string pKhoa)
        {
            DataTable table;
            try
            {
                string commandText = " SELECT CT.Khoa, CT.KhoaKho, K.Ma as TenKho,  CT.KhoaHangHoa, HH.Ma as MaHang, HH.Ten" + modGeneral.H_LANGUAGE + " as TenHang,  CT.SoLoHang, CT.SoSeri, CT.NgayNhap, CT.NgayHetHanDung, CT.KhoaDonViTinh, DVT.Ten" + modGeneral.H_LANGUAGE + " as DonViTinh,  CT.HeSo, CT.SoLuong, CT.DonGiaNT, CT.TienHangNT, 0 as GiaVon, 0 as TienVon, CT.TyLeChietKhau,  CT.TienChietKhauNT, CT.TyLeThue, CT.TienThueNT, CT.KhoaTKHangHoa, TKHH.SoTaiKhoan as SoTKHangHoa,  HH.KhoaTKGiaVon, TKGV.SoTaiKhoan as SoTKGiaVon, CT.SoLuongDaTra  FROM ST_NhapKhoChiTiet CT LEFT JOIN DM_Kho K on CT.KhoaKho = K.Khoa  LEFT JOIN DM_HangHoa HH on CT.KhoaHangHoa = HH.Khoa  LEFT JOIN DM_DonViTinh DVT on CT.KhoaDonViTinh = DVT.Khoa  LEFT JOIN DM_TaiKhoan TKHH on CT.KhoaTKHangHoa = TKHH.Khoa  LEFT JOIN DM_TaiKhoan TKGV on HH.KhoaTKGiaVon = TKGV.Khoa  WHERE CT.Khoa = '" + pKhoa.Trim() + "'";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public bool Save()
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[0x2c];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@Khoa", DbType.Int64, ParameterDirection.Input, this.mKhoa);
                commandParameters[1] = DBHelper.createParameter("@KhoaPhieuNhap", DbType.Int64, ParameterDirection.Input, this.mKhoaPhieuNhap);
                commandParameters[2] = DBHelper.createParameter("@LoaiTien", DbType.Int64, ParameterDirection.Input, this.mLoaiTien);
                commandParameters[3] = DBHelper.createParameter("@TyGia", DbType.Date, ParameterDirection.Input, this.mTyGia);
                commandParameters[4] = DBHelper.createParameter("@KhoaKho", DbType.Int64, ParameterDirection.Input, this.mKhoaKho);
                commandParameters[5] = DBHelper.createParameter("@KhoaHangHoa", DbType.Int64, ParameterDirection.Input, this.mKhoaHangHoa);
                commandParameters[6] = DBHelper.createParameter("@KhoaDonViTinh", DbType.Int64, ParameterDirection.Input, this.mKhoaDonViTinh);
                commandParameters[7] = DBHelper.createParameter("@HeSo", DbType.Date, ParameterDirection.Input, this.mHeSo);
                commandParameters[8] = DBHelper.createParameter("@NgayNhap", DbType.Int64, ParameterDirection.Input, this.mNgayNhap);
                commandParameters[9] = DBHelper.createParameter("@SoSeri", DbType.Int64, ParameterDirection.Input, this.mSoSeri);
                commandParameters[10] = DBHelper.createParameter("@SoLoHang", DbType.Int64, ParameterDirection.Input, this.mSoLoHang);
                commandParameters[11] = DBHelper.createParameter("@NgayHetHanDung", DbType.Int64, ParameterDirection.Input, this.mNgayHetHanDung);
                commandParameters[12] = DBHelper.createParameter("@SoLuong", DbType.Date, ParameterDirection.Input, this.mSoLuong);
                commandParameters[13] = DBHelper.createParameter("@DonGiaNT", DbType.Date, ParameterDirection.Input, this.mDonGiaNT);
                commandParameters[14] = DBHelper.createParameter("@DonGia", DbType.Date, ParameterDirection.Input, this.mDonGia);
                commandParameters[15] = DBHelper.createParameter("@TienHangNT", DbType.Date, ParameterDirection.Input, this.mTienHangNT);
                commandParameters[0x10] = DBHelper.createParameter("@TienHang", DbType.Date, ParameterDirection.Input, this.mTienHang);
                commandParameters[0x11] = DBHelper.createParameter("@TyLeChietKhau", DbType.Double, ParameterDirection.Input, this.mTyLeChietKhau);
                commandParameters[0x12] = DBHelper.createParameter("@TienChietKhauNT", DbType.Date, ParameterDirection.Input, this.mTienChietKhauNT);
                commandParameters[0x13] = DBHelper.createParameter("@TienChietKhau", DbType.Date, ParameterDirection.Input, this.mTienChietKhau);
                commandParameters[20] = DBHelper.createParameter("@TyLeThue", DbType.Double, ParameterDirection.Input, this.mTyLeThue);
                commandParameters[0x15] = DBHelper.createParameter("@TienThueNT", DbType.Date, ParameterDirection.Input, this.mTienThueNT);
                commandParameters[0x16] = DBHelper.createParameter("@TienThue", DbType.Date, ParameterDirection.Input, this.mTienThue);
                commandParameters[0x17] = DBHelper.createParameter("@TienPhiNhapKhauNT", DbType.Date, ParameterDirection.Input, this.mTienPhiNhapKhauNT);
                commandParameters[0x18] = DBHelper.createParameter("@TienPhiNhapKhau", DbType.Date, ParameterDirection.Input, this.mTienPhiNhapKhau);
                commandParameters[0x19] = DBHelper.createParameter("@TyLeThueNK", DbType.Double, ParameterDirection.Input, this.mTyLeThueNK);
                commandParameters[0x1a] = DBHelper.createParameter("@TienThueNhapKhauNT", DbType.Date, ParameterDirection.Input, this.mTienThueNhapKhauNT);
                commandParameters[0x1b] = DBHelper.createParameter("@TienThueNhapKhau", DbType.Date, ParameterDirection.Input, this.mTienThueNhapKhau);
                commandParameters[0x1c] = DBHelper.createParameter("@TienPhiNT", DbType.Date, ParameterDirection.Input, this.mTienPhiNT);
                commandParameters[0x1d] = DBHelper.createParameter("@TienPhi", DbType.Date, ParameterDirection.Input, this.mTienPhi);
                commandParameters[30] = DBHelper.createParameter("@TyLeThuePhi", DbType.Double, ParameterDirection.Input, this.mTyLeThuePhi);
                commandParameters[0x1f] = DBHelper.createParameter("@TienThuePhiNT", DbType.Date, ParameterDirection.Input, this.mTienThuePhiNT);
                commandParameters[0x20] = DBHelper.createParameter("@TienThuePhi", DbType.Date, ParameterDirection.Input, this.mTienThuePhi);
                commandParameters[0x21] = DBHelper.createParameter("@KhoaTKHangHoa", DbType.Int64, ParameterDirection.Input, this.mKhoaTKHangHoa);
                commandParameters[0x22] = DBHelper.createParameter("@KhoaTKGiaVon", DbType.Int64, ParameterDirection.Input, this.mKhoaTKGiaVon);
                commandParameters[0x23] = DBHelper.createParameter("@GiaBanNT", DbType.Date, ParameterDirection.Input, this.mGiaBanNT);
                commandParameters[0x24] = DBHelper.createParameter("@GiaBan", DbType.Date, ParameterDirection.Input, this.mGiaBan);
                commandParameters[0x25] = DBHelper.createParameter("@TienBanNT", DbType.Date, ParameterDirection.Input, this.mTienBanNT);
                commandParameters[0x26] = DBHelper.createParameter("@TienBan", DbType.Date, ParameterDirection.Input, this.mTienBan);
                commandParameters[0x27] = DBHelper.createParameter("@KhoaChiTiet", DbType.Int64, ParameterDirection.Input, "");
                commandParameters[40] = DBHelper.createParameter("@SoLuongXuat", DbType.Date, ParameterDirection.Input, this.mSoLuongXuat);
                commandParameters[0x29] = DBHelper.createParameter("@TienPhiNKNT", DbType.Date, ParameterDirection.Input, this.mTienPhiNKNT);
                commandParameters[0x2a] = DBHelper.createParameter("@TienPhiNK", DbType.Date, ParameterDirection.Input, this.mTienPhiNK);
                commandParameters[0x2b] = DBHelper.createParameter("@SoLuongDaTra", DbType.Date, ParameterDirection.Input, this.mSoLuongDaTra);
                if (DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "ST_sp_NhapKhoChiTiet", commandParameters) > 0)
                {
                    return true;
                }
                flag = false;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public double DonGia
        {
            get
            {
                return this.mDonGia;
            }
            set
            {
                this.mDonGia = value;
            }
        }

        public double DonGiaNT
        {
            get
            {
                return this.mDonGiaNT;
            }
            set
            {
                this.mDonGiaNT = value;
            }
        }

        public double GiaBan
        {
            get
            {
                return this.mGiaBan;
            }
            set
            {
                this.mGiaBan = value;
            }
        }

        public double GiaBanNT
        {
            get
            {
                return this.mGiaBanNT;
            }
            set
            {
                this.mGiaBanNT = value;
            }
        }

        public double HeSo
        {
            get
            {
                return this.mHeSo;
            }
            set
            {
                this.mHeSo = value;
            }
        }

        public string Khoa
        {
            get
            {
                return this.mKhoa;
            }
            set
            {
                this.mKhoa = value;
            }
        }

        public string KhoaChiTiet
        {
            get
            {
                return this.mKhoaChiTiet;
            }
            set
            {
                this.mKhoaChiTiet = value;
            }
        }

        public string KhoaDonViTinh
        {
            get
            {
                return this.mKhoaDonViTinh;
            }
            set
            {
                this.mKhoaDonViTinh = value;
            }
        }

        public string KhoaHangHoa
        {
            get
            {
                return this.mKhoaHangHoa;
            }
            set
            {
                this.mKhoaHangHoa = value;
            }
        }

        public string KhoaKho
        {
            get
            {
                return this.mKhoaKho;
            }
            set
            {
                this.mKhoaKho = value;
            }
        }

        public string KhoaPhieuNhap
        {
            get
            {
                return this.mKhoaPhieuNhap;
            }
            set
            {
                this.mKhoaPhieuNhap = value;
            }
        }

        public string KhoaTKGiaVon
        {
            get
            {
                return this.mKhoaTKGiaVon;
            }
            set
            {
                this.mKhoaTKGiaVon = value;
            }
        }

        public string KhoaTKHangHoa
        {
            get
            {
                return this.mKhoaTKHangHoa;
            }
            set
            {
                this.mKhoaTKHangHoa = value;
            }
        }

        public string LoaiTien
        {
            get
            {
                return this.mLoaiTien;
            }
            set
            {
                this.mLoaiTien = value;
            }
        }

        public string NgayHetHanDung
        {
            get
            {
                return this.mNgayHetHanDung;
            }
            set
            {
                this.mNgayHetHanDung = value;
            }
        }

        public string NgayNhap
        {
            get
            {
                return this.mNgayNhap;
            }
            set
            {
                this.mNgayNhap = value;
            }
        }

        public string SoLoHang
        {
            get
            {
                return this.mSoLoHang;
            }
            set
            {
                this.mSoLoHang = value;
            }
        }

        public double SoLuong
        {
            get
            {
                return this.mSoLuong;
            }
            set
            {
                this.mSoLuong = value;
            }
        }

        public double SoLuongDaTra
        {
            get
            {
                return this.mSoLuongDaTra;
            }
            set
            {
                this.mSoLuongDaTra = value;
            }
        }

        public double SoLuongXuat
        {
            get
            {
                return this.mSoLuongXuat;
            }
            set
            {
                this.mSoLuongXuat = value;
            }
        }

        public string SoSeri
        {
            get
            {
                return this.mSoSeri;
            }
            set
            {
                this.mSoSeri = value;
            }
        }

        public double TienBan
        {
            get
            {
                return this.mTienBan;
            }
            set
            {
                this.mTienBan = value;
            }
        }

        public double TienBanNT
        {
            get
            {
                return this.mTienBanNT;
            }
            set
            {
                this.mTienBanNT = value;
            }
        }

        public double TienChietKhau
        {
            get
            {
                return this.mTienChietKhau;
            }
            set
            {
                this.mTienChietKhau = value;
            }
        }

        public double TienChietKhauNT
        {
            get
            {
                return this.mTienChietKhauNT;
            }
            set
            {
                this.mTienChietKhauNT = value;
            }
        }

        public double TienHang
        {
            get
            {
                return this.mTienHang;
            }
            set
            {
                this.mTienHang = value;
            }
        }

        public double TienHangNT
        {
            get
            {
                return this.mTienHangNT;
            }
            set
            {
                this.mTienHangNT = value;
            }
        }

        public double TienPhi
        {
            get
            {
                return this.mTienPhi;
            }
            set
            {
                this.mTienPhi = value;
            }
        }

        public double TienPhiNhapKhau
        {
            get
            {
                return this.mTienPhiNhapKhau;
            }
            set
            {
                this.mTienPhiNhapKhau = value;
            }
        }

        public double TienPhiNhapKhauNT
        {
            get
            {
                return this.mTienPhiNhapKhauNT;
            }
            set
            {
                this.mTienPhiNhapKhauNT = value;
            }
        }

        public double TienPhiNK
        {
            get
            {
                return this.mTienPhiNK;
            }
            set
            {
                this.mTienPhiNK = value;
            }
        }

        public double TienPhiNKNT
        {
            get
            {
                return this.mTienPhiNKNT;
            }
            set
            {
                this.mTienPhiNKNT = value;
            }
        }

        public double TienPhiNT
        {
            get
            {
                return this.mTienPhiNT;
            }
            set
            {
                this.mTienPhiNT = value;
            }
        }

        public double TienThue
        {
            get
            {
                return this.mTienThue;
            }
            set
            {
                this.mTienThue = value;
            }
        }

        public double TienThueNhapKhau
        {
            get
            {
                return this.mTienThueNhapKhau;
            }
            set
            {
                this.mTienThueNhapKhau = value;
            }
        }

        public double TienThueNhapKhauNT
        {
            get
            {
                return this.mTienThueNhapKhauNT;
            }
            set
            {
                this.mTienThueNhapKhauNT = value;
            }
        }

        public double TienThueNT
        {
            get
            {
                return this.mTienThueNT;
            }
            set
            {
                this.mTienThueNT = value;
            }
        }

        public double TienThuePhi
        {
            get
            {
                return this.mTienThuePhi;
            }
            set
            {
                this.mTienThuePhi = value;
            }
        }

        public double TienThuePhiNT
        {
            get
            {
                return this.mTienThuePhiNT;
            }
            set
            {
                this.mTienThuePhiNT = value;
            }
        }

        public double TyGia
        {
            get
            {
                return this.mTyGia;
            }
            set
            {
                this.mTyGia = value;
            }
        }

        public int TyLeChietKhau
        {
            get
            {
                return this.mTyLeChietKhau;
            }
            set
            {
                this.mTyLeChietKhau = value;
            }
        }

        public int TyLeThue
        {
            get
            {
                return this.mTyLeThue;
            }
            set
            {
                this.mTyLeThue = value;
            }
        }

        public int TyLeThueNK
        {
            get
            {
                return this.mTyLeThueNK;
            }
            set
            {
                this.mTyLeThueNK = value;
            }
        }

        public int TyLeThuePhi
        {
            get
            {
                return this.mTyLeThuePhi;
            }
            set
            {
                this.mTyLeThuePhi = value;
            }
        }
    }
}

